<!DOCTYPE html>
<html lang="en">
<include file="Public:header" />
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script language="javascript" type="text/javascript" src="__ROOT__/Statics/My97/WdatePicker.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/jquery.min.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/Common/umeditor/umeditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/Common/umeditor/umeditor.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/Common/umeditor/lang/zh-cn/zh-cn.js"></script>
<link rel="stylesheet" href="__PUBLIC__/css/matrix-style.css" />
<link rel="stylesheet" href="__PUBLIC__/css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="__PUBLIC__/css/colorpicker.css" />
<link rel="stylesheet" href="__PUBLIC__/css/datepicker.css" />
<link rel="stylesheet" href="__PUBLIC__/css/uniform.css" />
<link rel="stylesheet" href="__PUBLIC__/css/select2.css" />
<link rel="stylesheet" href="__PUBLIC__/css/matrix-media.css" />
<link rel="stylesheet" href="__PUBLIC__/css/bootstrap-wysihtml5.css" />
<link href="__PUBLIC__/font-awesome/css/font-awesome.css" rel="stylesheet" />
<link rel="stylesheet" href="__ROOT__/Statics/Matrixadmin/css/matrix-style.css" />
<link href='http://fonts.useso.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="__PUBLIC__/Common/umeditor/themes/default/css/umeditor.min.css" type="text/css">
<script src="__ROOT__/Statics/Admin/js/addnotice.js"></script>
<body>

<!--Header-part-->
<div id="header">
  <h1><a href="#">{:C('SITENAME')}</a></h1>
</div>
<!--close-Header-part--> 
<include file="Public:top" />
<include file="Public:nav" />
<!--main-container-part-->
<!--close-left-menu-stats-sidebar-->
<div id="content">
  <div id="content-header">
  <div id="breadcrumb"> <a href="{:U('Index/index')}" title="返回首页" class="tip-bottom"><i class="icon-home"></i> 首页</a><a href="#" class="tip-bottom"> 信息管理</a> <a href="{:U('Notice/index')}" class="tip-bottom">系统消息</a> <a href="#" class="current">添加系统消息</a></div>
  <h1>添加系统消息</h1>
</div>
<div class="container-fluid">
  <hr>
  <div class="row-fluid">
    <div class="span12">
      <div class="widget-box">
        <div class="widget-title"> <span class="icon"> <i class="icon-align-justify"></i> </span>
            <h5>添加</h5>
        </div>
          <div class="widget-content nopadding">
            <form id="form-wizard" action="{:U('Notice/add')}" method="post" class="form-horizontal">
              <div id="form-wizard-1" class="step">
               <div class="control-group">
                <label class="control-label">消息标题 :</label>
                  <div class="controls">
                    <input id="title" type="text" name = "title"  class="span3"/>
                  </div>
               </div>
               <div class="control-group">
                <label class="control-label">消息内容 :</label>
                 <div class="controls">
                  <script type="text/plain" id="data_details" name="info" style="width:80%;height:400px;"></script>
                 </div>
              </div>
              </div>
              <div class="form-actions">
                <button type="submit" class="btn btn-success">保存信息</button>
                <div id="status"></div>
              </div>
              <div id="submitted"></div>
            </form>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
<!--end-main-container-part-->
<include file="Public:footer" />

<script src="__ROOT__/Statics/Matrixadmin/js/jquery.ui.custom.js"></script> 
<script src="__ROOT__/Statics/Matrixadmin/js/bootstrap.min.js"></script> 
<script src="__ROOT__/Statics/Matrixadmin/js/jquery.validate.js"></script> 
<script src="__ROOT__/Statics/Matrixadmin/js/jquery.wizard.js"></script> 
<script src="__ROOT__/Statics/Matrixadmin/js/matrix.js"></script> 
<script language="javascript">
                       
                var um = UM.getEditor('data_details', {
                imageUrl: "{:U('Upload/editor')}",
                imagePath: '/Uploads/',
                lang: 'zh-cn',
                langPath: UMEDITOR_CONFIG.UMEDITOR_HOME_URL + "lang/",
                focus: false
 });
</script>
<script type="text/javascript">
  // This function is called from the pop-up menus to transfer to
  // a different page. Ignore if the value returned is a null string:
  function goPage (newURL) {
      // if url is empty, skip the menu dividers and reset the menu selection to default
      if (newURL != "") {
      
          // if url is "-", it is this page -- reset the menu:
          if (newURL == "-" ) {
              resetMenu();            
          } 
          // else, send page to designated URL            
          else {  
            document.location.href = newURL;
          }
      }
  }

// resets the menu selection upon entry to this page:
function resetMenu() {
   document.gomenu.selector.selectedIndex =2;
}
</script>
</body>
</html>
